#!/usr/bin/python2.4
#
#Copyright 2009 Google Inc.
#
#Licensed under the Apache License, Version 2.0 (the "License");
#you may not use this file except in compliance with the License.
#You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#Unless required by applicable law or agreed to in writing, software
#distributed under the License is distributed on an "AS IS" BASIS,
#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#See the License for the specific language governing permissions and
#limitations under the License.
#

"""Defines all the constants.

This class defines all the global constants required.
"""

FIELD_SEPARATOR = '\t'
LINE_SEPARATOR = '\n'
HTML_LINE_SEPARATOR = '<br>'
IMAGE_PATH = '/static/images'
ENCODING = 'utf-8'

GET_METADATA = '0'
VERIFY_METADATA = '1'
GET_GLOBALDATA = '2'
DATA_UPLOAD = '3'
DATA_UPLOAD_IN_PROGRESS = '4'
IMAGE_UPLOAD = '5'
GENERATE_WEBSITE = '6'
GENERATE_PAGES = '7'
NO_OF_ROWS_IN_SET = 500


PAGE_PROPERTIES = ['content_type']

CONTENT_TYPES = ['PDF', 'VIDEO', 'PHOTO', 'DOC', 'PRESENTATION', 'SPREADSHEET']
DISPLAY_FLAGS = {
    'NONE': 0,
    'INTERMEDIATE_PAGE': 1,
    'LANDING_PAGE': 2,
    'BOTH': 3,
    }
